<html><!-- InstanceBegin template="/Templates/_Admin_Template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- InstanceBeginEditable name="doctitle" -->
<title>TCedit 测试用例编写工具 - 修改登录口令</title>
<!-- InstanceEndEditable -->
<link rel="shortcut icon" href="favicon.ico">
<link href="/css/common.css" rel="stylesheet" type="text/css">
<script src="/js/prototype.js"></script>
<script src="/js/common.js"></script>
<!-- InstanceBeginEditable name="head" -->
<script src="/js/md5.js"></script>
<!-- InstanceEndEditable -->
<script language="javascript">
function checkForm(){
	if($F("oldPwd").length<1) {
		alert("请输入旧口令！");
		return false;
	}
	if($F("newPwd").length<6) {
		alert("新口令至少为6个字符！");
		return false;
	}
	if($F("newPwd")!=$F("newPwd2")) {
		alert("两次输入的新口令不一致！");
		return false;
	}
	$("oldPassword").value=hex_md5("rslai.OrG_" + $F("oldPwd") + "_rslai.OrG");
	$("newPassword").value=hex_md5("rslai.OrG_" + $F("newPwd") + "_rslai.OrG");
	$("oldPwd").value=fakepwd($F("oldPwd"));
	$("newPwd").value=fakepwd($F("newPwd"));
	$("newPwd2").value=fakepwd($F("newPwd2"));
	return true;
}
</script>
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>

<body>
<!-- InstanceBeginEditable name="MainContent" -->
<table width="99%" align="center" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="100%" valign="top">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td colspan="4" bgcolor="#dedeef"><b>修改登录口令</b></td>
				</tr>
				<tr>
					<td></td>
					<td>
						#if($error)
							<font color="#FF0000">$error</font>
						#end
					</td>
				</tr>
				<form action="/user/password.jspx" method="post" enctype="multipart/form-data" name="formData" id="formData" onSubmit="return checkForm()">
				<tr>
					<td width="125"><input name="username" type="hidden" id="username" value="${username}"></td>
					<td width="503">${message}</td>
				</tr>
				<tr>
					<td align="right">输入旧口令：</td>
					<td><input name="oldPwd" type="password" id="oldPwd" style="width:200px" maxlength="20"></td>
				</tr>
				<tr>
					<td align="right">输入新口令：</td>
					<td><input name="newPwd" type="password" id="newPwd" style="width:200px" maxlength="20">
					6-20个英文大小写字母，数字和特殊符号</td>
				</tr>
				<tr>
					<td align="right">再次输入新口令：</td>
					<td><input name="newPwd2" type="password" id="newPwd2" style="width:200px" maxlength="20"></td>
				</tr>
				<tr>
					<td><BR></td>
					<td></td>
				</tr>
				<tr>
					<td><input name="oldPassword" type="hidden" id="oldPassword">
					<input name="newPassword" type="hidden" id="newPassword"></td>
					<td><input name="Submit2" type="submit" class="button" value="修改"></td>
					<td></td>
					<td></td>
				</tr>
				</form>
			</table>
		</td>
	</tr>
</table>
<!-- InstanceEndEditable -->
</body>
<!-- InstanceEnd --></html>